<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'HomeController@index');
    $router->get('/bar', 'HomeController@bar');
    $router->get('/pie', 'HomeController@pie');
    $router->group(['prefix' => 'public'],function ($router){
        $router->resource('/users', UserController::class);
        $router->resource('/roles', RoleController::class);
        $router->resource('/permissions', PermissionController::class);
        $router->resource('/logs', LogController::class);
        $router->resource('/chats', ChatController::class);
    });
});

